/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bllInterface;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author Mrkupi
 */
public interface BLLChatServer extends Remote
{
    boolean login(iChatUser user) throws RemoteException;
    boolean logout(iChatUser user) throws RemoteException;
    
    void changeKey(String user, String sender) throws RemoteException;
    
    void post(ChatMessage cm) throws RemoteException;
    void postVoice( String sender, String receiver, byte[] pack ) throws RemoteException;
    
    void postFile( String fileName, FileMessage fm ) throws RemoteException;
    FileMessage getFile( String fileName ) throws RemoteException;
}